package cn.leaf.uc.api.entity;

import cn.leaf.database.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
    * 租户表
    */
@Data
@EqualsAndHashCode(callSuper=true)
@Builder
@TableName(value = "t_tenant")
public class TenantEntity extends BaseEntity implements Serializable {
    /**
     * 租户名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 租户编码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private LocalDateTime endTime;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    private String status;

    /**
     * 删除标识
     */
    @TableField(value = "is_deleted")
    private String isDeleted;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_CODE = "code";

    public static final String COL_START_TIME = "start_time";

    public static final String COL_END_TIME = "end_time";

    public static final String COL_STATUS = "status";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_INSERT_USER = "insert_user";

    public static final String COL_UPDATE_USER = "update_user";

    public static final String COL_INSERT_TIME = "insert_time";

    public static final String COL_UPDATE_TIME = "update_time";
}